<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Iniuriam: /home/etu/v/p1115890/LIF7/EncoreUn/iniuriam/src/stock.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Iniuriam
   &#160;<span id="projectnumber">alpha 1</span>
   </div>
   <div id="projectbrief"> RPG futuriste</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">/home/etu/v/p1115890/LIF7/EncoreUn/iniuriam/src/stock.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="stock_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef __stock_h__</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define __stock_h__</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;stdio.h&gt;</span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &lt;stdlib.h&gt;</span>
<a name="l00006"></a>00006 <span class="preprocessor">#include &lt;assert.h&gt;</span>
<a name="l00007"></a>00007 <span class="preprocessor">#include &lt;string.h&gt;</span>
<a name="l00008"></a>00008 <span class="preprocessor">#include &quot;<a class="code" href="objet_8h.html">objet.h</a>&quot;</span>
<a name="l00009"></a>00009 
<a name="l00014"></a><a class="code" href="structStock.html">00014</a> <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00015"></a>00015 {
<a name="l00016"></a><a class="code" href="structStock.html#a558fdd10a3f45d84252dbe99f5f84262">00016</a>     <a class="code" href="structObjet.html">Objet</a> *<a class="code" href="structStock.html#a558fdd10a3f45d84252dbe99f5f84262">objet</a>;   
<a name="l00017"></a><a class="code" href="structStock.html#acd741ff25210f0e9c771af86c3bc4978">00017</a>     <span class="keywordtype">int</span> <a class="code" href="structStock.html#acd741ff25210f0e9c771af86c3bc4978">quantite</a>;   
<a name="l00019"></a>00019 } <a class="code" href="structStock.html">Stock</a>;
<a name="l00020"></a>00020 
<a name="l00025"></a>00025 <span class="keywordtype">void</span> <a class="code" href="stock_8c.html#acd1f7ee090a3a6542ba5f1ba10a701af" title="Preconditions : st n&#39;a pas déjà été initialisé, obj est initialisé   Postconditions : st est initiali...">stockInit</a> (<a class="code" href="structStock.html">Stock</a> *st, <a class="code" href="structObjet.html">Objet</a>* obj);
<a name="l00026"></a>00026 
<a name="l00031"></a>00031 <span class="keywordtype">void</span> <a class="code" href="stock_8c.html#a50efe29dcdc67747fa933707e6c4ad5a" title="Preconditions : st est initialisé   Postconditions : st est libéré avec une quantite nulle...">stockLibere</a> (<a class="code" href="structStock.html">Stock</a> *st);
<a name="l00032"></a>00032 
<a name="l00037"></a>00037 <span class="keywordtype">void</span> <a class="code" href="stock_8c.html#a0634aa017ef72d0391347b270d299bc1" title="Preconditions : st est initialisé   Postconditions : la quantité d&#39;objets dans st est augmentée de n...">incrementerStock</a>(<a class="code" href="structStock.html">Stock</a> *st, <span class="keyword">const</span> <span class="keywordtype">int</span> n);
<a name="l00038"></a>00038 
<a name="l00043"></a>00043 <a class="code" href="structObjet.html">Objet</a>* <a class="code" href="stock_8c.html#a8600d78e30dde50b7758ed25f8b0df1e" title="Preconditions : st est initialisé   Postconditions : retourne l&#39;adresse de l&#39;objet enregistré dans st...">getStockObjet</a>(<span class="keyword">const</span> <a class="code" href="structStock.html">Stock</a> *st);
<a name="l00044"></a>00044 
<a name="l00049"></a>00049 <span class="keywordtype">int</span> <a class="code" href="stock_8c.html#a66fefcf497800e5ccb12be0b01cfe268" title="Preconditions : st est initialisé   Postconditions : retourne la quantite d&#39;objet de st...">getStockQuantite</a>(<span class="keyword">const</span> <a class="code" href="structStock.html">Stock</a>* stock);
<a name="l00050"></a>00050 
<a name="l00055"></a>00055 <span class="keywordtype">void</span> <a class="code" href="stock_8c.html#a2818bbe140e68e701d868b9a32b8e372" title="Preconditions : st et obj sont initialisés   Postconditions : initialise l&#39;objet de st...">setStockObjet</a> (<a class="code" href="structStock.html">Stock</a> *st, <a class="code" href="structObjet.html">Objet</a>* obj);
<a name="l00056"></a>00056 
<a name="l00061"></a>00061 <span class="keywordtype">void</span> <a class="code" href="stock_8c.html#a1ddd1b1b26a3ef93817d9c9bd7b99f86" title="Preconditions : st2 est initialisé, pas st1   Postconditions : copie st2 dans st1.">copieStock</a> (<a class="code" href="structStock.html">Stock</a> *st1, <span class="keyword">const</span> <a class="code" href="structStock.html">Stock</a> *st2);
<a name="l00062"></a>00062 
<a name="l00063"></a>00063 <span class="preprocessor">#endif</span>
</pre></div></div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Tue Jun 4 2013 08:45:33 for Iniuriam by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
